﻿using System;
using System.Collections.Generic;

namespace Pap.Data
{
    /// <summary>
    /// 
    /// </summary>
    public interface IUserMessagesRepository
    {
        /// <summary>
        /// Gets the user message by ID.
        /// </summary>
        /// <param name="UserMessageID">The user message ID.</param>
        /// <returns></returns>
        IUserMessage GetUserMessageByID(Guid UserMessageID);

        /// <summary>
        /// Finds the user messages.
        /// </summary>
        /// <param name="Where">The where.</param>
        /// <returns></returns>
        IEnumerable<IUserMessage> FindUserMessages(System.Linq.Expressions.Expression<Func<IUserMessage, bool>> Where);

        /// <summary>
        /// Creates the user message.
        /// </summary>
        /// <param name="UserMessage">The user message.</param>
        void CreateUserMessage(IUserMessage UserMessage);

        /// <summary>
        /// Deletes the user messages.
        /// </summary>
        /// <param name="Where">The where.</param>
        void DeleteUserMessages(System.Linq.Expressions.Expression<Func<IUserMessage, bool>> Where);
    }
}
